package com.ksd.orm.pug.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ksd.pug.pojo.ArticleComment;
import org.apache.ibatis.annotations.Param;

/**
 * @author hcl
 * @date 2022/3/21$ 22:12$
 */
public interface ArticleCommentMapper extends BaseMapper<ArticleComment> {


    /**
     * 评论赞+1
     * @param commentId
     * @return
     */
    int updateCommentPlusZannum(@Param("commentId")Long commentId);

    /**
     * 评论赞 - 1
     * @param commentId
     * @return
     */
    int updateCommentMiusZannum(@Param("commentId")Long commentId);
}
